﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace NewGlobalBizAssist
{
    public partial class MemberInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request.QueryString["ID"]!=null)
                  LoadData(Request.QueryString["ID"].ToString());
            }
        }


        private void LoadData(string ID)
        {
            DataRow dr = new Lib.Member().GetMemberInfo(ID);
            if (dr != null)
            {
                txt_memberid.Value = dr["MemberID"].ToString();
                txt_membername.Value = dr["LastName"].ToString() + ", " + dr["FirstName"].ToString();
            }
        }

    }

}